package co.baiku.boot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "ajavaer.weixin.pay.v3")
public class WeixinPayV3Config {
    /**
     * 微信分配的公众账号ID 或者 小程序的appid ，看具体情况
     */
    private String appid;
    /**
     * 暂时没有用到
     */
    private String secret;
    /**
     * 支付分ID
     */
    private String serviceId;
    /**
     * api key
     */
    private String aesKey;
    /**
     * 商户号
     */
    private String mchId;
    /**
     * 商户证书序列号
     */
    private String mchSerialNo;
    /**
     * 你的商户私钥
     * <p>
     * 以-----BEGIN PRIVATE KEY-----开头,-----END PRIVATE KEY-----结尾
     * </p>
     */
    private String privateKey;
    /**
     * 你的微信支付平台证书
     * <p>
     * 以-----BEGIN CERTIFICATE-----开头,-----END CERTIFICATE-----结尾
     * </p>
     */
    private String certificate;

    public String getAesKey() {
        return aesKey;
    }

    public void setAesKey(String aesKey) {
        this.aesKey = aesKey;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getMchSerialNo() {
        return mchSerialNo;
    }

    public void setMchSerialNo(String mchSerialNo) {
        this.mchSerialNo = mchSerialNo;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }
}
